﻿namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Web.Script.Serialization;

    [Table("TbKhoiThi_MonTotNghiep")]
    public class TbKhoiThi_MonTotNghiep
    {
        [Key]
        [Column(Order = 0)]
        [Required(ErrorMessage = "Chưa chọn môn")]
        public int MaMon { get; set; }

        [Key]
        [Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Required(ErrorMessage = "Chưa chọn Khối thi")]
        [StringLength(10)]
        public string MaKhoiThi { get; set; }

        [StringLength(500)]
        public string MoTa { get; set; }

        [ScriptIgnore]
        public TbMonTotNghiep TbMonTotNghiep { get; set; }

        [ScriptIgnore]
        public TbKhoiThi TbKhoiThi { get; set; }
    }
}